import request from '@/utils/request'

// 查询场站功率预测列表
export function listPrediction(query) {
  return request({
    url: '/trendsDispatch/prediction/list',
    method: 'get',
    params: query
  })
}

// 查询场站功率预测图表
export function getStationInfo(query) {
  return request({
    url: '/trendsDispatch/prediction/getStationInfo',
    method: 'get',
    params: query
  })
}

// 查询场站功率预测详细
export function getPrediction(id) {
  return request({
    url: '/trendsDispatch/prediction/' + id,
    method: 'get'
  })
}

// 新增场站功率预测
export function addPrediction(data) {
  return request({
    url: '/trendsDispatch/prediction',
    method: 'post',
    data: data
  })
}

// 修改场站功率预测
export function updatePrediction(data) {
  return request({
    url: '/trendsDispatch/prediction',
    method: 'put',
    data: data
  })
}

// 删除场站功率预测
export function delPrediction(id) {
  return request({
    url: '/trendsDispatch/prediction/' + id,
    method: 'delete'
  })
}

// 导出场站功率预测
export function exportPrediction(query) {
  return request({
    url: '/trendsDispatch/prediction/export',
    method: 'get',
    params: query
  })
}
